package lambda;
import java.util.function.BinaryOperator;
public class demo3 {
    public static void main(String[] args) {
        BinaryOperator<Integer> add=(a,b)->a+b;
        BinaryOperator<Integer> substract=(a,b)->a-b;
        BinaryOperator<Integer> multiple=(a,b)->a*b;
        BinaryOperator<Integer> division=(a,b)->a/b;

        System.out.println("a+b="+add.apply(5,2));
        System.out.println("a-b="+substract.apply(5,2));
        System.out.println("a*b="+multiple.apply(5,2));
        System.out.println("a/b="+division.apply(5,2));

    }
}
